package com.ys.servers.points.dao;

import com.ys.servers.points.data.PointsType;
import io.vertx.core.Future;

import java.util.List;

/**
 * Created by taotao on 2017/5/8.
 */
public interface PointsTypeDao {

    public Future<PointsType> savePointsType(PointsType pointsType);

    public Future<PointsType> restorePointsType(String id);

    public Future<Boolean> removePointsType(String id);

    public Future<Boolean> purgePointsType(String id);

    public Future<PointsType> getPointsType(String id);

    public Future<Boolean> addPointsTypeToRedisList(PointsType pointsType);

    public Future<Boolean> removePointsTypeFromRedisList(PointsType pointsType);

    public Future<List<PointsType>> getAllPointsType();
}
